package ie.dcu.spca.data;

import java.util.List;

import ie.dcu.spca.model.bean.Category;

public interface CategoryDataManager extends BasicDataManager {

    /**
     * Create a user and save it to the DB
     * 
     * @param name
     * @return
     */
    int create(String name);

    /**
     * Update an Category by id to a new name
     * 
     * @param id
     * @param name
     */
    void update(int id, String name);

    /**
     * Get All Categories
     * 
     * @return
     */
    List<Category> get();

    int getLastId();

}
